<?php
/**
 * Created by PhpStorm
 * author  :gogochen
 * date    :2019/12/11
 * time    :15:33
 */

function show($status, $message, $data = [], $httpCode = 200)
{
    $res = [
        'error' => $status,
        'message' => $message,
        'data' => $data,
    ];

    return json_encode(['code'=>$httpCode,'payload'=>$res]);
}